package cn.wsalix.user.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.BasicRepository;
import cn.wsalix.user.entity.UserInfo;

public interface UserInfoRepository extends BasicRepository<UserInfo> {

	@Query("select u from UserInfo u where u.user.id = :userId")
	public UserInfo findByUserIdOne(@Param("userId") Long userId);

}
